using System.ComponentModel.DataAnnotations;

namespace mvcdemo07.Models
{
    public class Student
    {
        [Required]
        [Display(Name="学号")]
        public int Id { get; set; }
        [Display(Name="姓名")]
        public string Name { get; set; }
        [Display(Name="年龄")]
        public int Age { get; set; }
        public bool IsDel { get; set; }=false;
        [Display(Name="班级编号")]
        public int GradeClassId { get; set; }
        public GradeClass GradeClass { get; set; }
    }
}